package Parser;

import java.util.ArrayList;

import LexicalAnalyzer.Token;

public abstract class Symbol {
	
	
	String content;	
	int type;

	protected ArrayList<Symbol> children;
	
	public abstract boolean matches(Token t);
	
	public abstract boolean isTerminal();
	
	public boolean addChild(Symbol s){
		return children.add(s);
	}

	public void setChildren(ArrayList<Symbol> ar){
		this.children=ar;
	}
	
	public ArrayList<Symbol> getChildren(){
		return this.children;
	}

	protected String toString(int i) {
		return this.toString();
	}
}